﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.SPG.Common.ListRepository;
using IntelligentDecisioning.SharePoint.Definition;

namespace IntelligentDecisioning.SharePoint.BusinessEntities
{
    /// <summary>
    /// Base class for business entities stored in sharepoint list repositories. 
    /// 
    /// These classes are designed to work with the sharepoint partterns and practices
    /// v2 entity mapper utility. The properties exposed in these classes are paired with
    /// mappings on the corresponding list classes (in this case SharePointList)
    /// </summary>
    public class ListItemEntityBase
    {

        #region Constructor

        public ListItemEntityBase()
        {

        }

        #endregion

        #region Public Properties

        /// <summary>
        /// Represents the SharePoint list item's Id field
        /// </summary>
        public int Id {get; set;}

        /// <summary>
        /// Represents the SharePoint list item's Title field.
        /// </summary>
        public string Title {get; set;}

        /// <summary>
        /// The timestamp when this item was created
        /// </summary>
        public DateTime Created { get; set; }

        /// <summary>
        /// The timestamp when this item was last updated
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// String that represents the sharepoint user who created this item
        /// </summary>
        public String Author { get; set; }

        /// <summary>
        /// String that represents the sharepoint user who last edited this item
        /// </summary>
        public String Editor { get; set; }

        #endregion

      
    }
}
